<layout name='./public/layout' />

<article class="blogs">
<h1 class="t_nav"><span>“程序员生活”，技术不断更新，不断提高自己，在技术中找到自己。</span>
  <a href="/" class="n1">网站首页</a><a href="#" class="n2">慢生活</a></h1>
<div class="newblog left">

<!--文章列表-->
<?php foreach($data as $v):?>

    <h2><a title="<?php echo $v['title']?>" href="__MODULE__/Article/detail/id/<?php echo $v['id']?>" ><?php echo $v['title']?></a></h2>
    <p class="dateview">
      <span>发布时间：<?php echo date('Y-m-d',$v['addtime'])?></span>
      <span>作者：<?php echo $v['author']?></span>
      <span>[<a href=/>程序员的生活</a>]</span>
    </p>
    <figure>
      <a title="<?php echo $v['title']?>" href="__MODULE__/Article/detail/id/<?php echo $v['id']?>" >
        <img src="<?php echo IMG_URL . $v['arc_pic']?>" alt="<?php echo $v['title']?>" >
      </a>
    </figure>
    <ul class="nlist">
      <p><?php echo $v['remark']?></p>
      <a href="__MODULE__/Article/detail/id/<?php echo $v['id']?>" title="<?php echo $v['title']?>" target="_blank" class="readmore">阅读全文>></a>
    </ul>
    <div class="line"></div>

<?php endforeach;?>
<!--文章列表-->



    <div class="blank"></div>

    <div class="page">
      <?php echo $page?>
    </div>

</div>
<aside class="right">
   <div class="rnav">
   <!--右侧四小分类-->
<ul>
<?php foreach($cats as $k=>$v):?>
  <li class="rnav<?php echo $k+1;?>">
  <?php if($v['id']==9):?>
  <a href="__CONTROLLER__/xc" target="_blank">
    <?php echo $v['catname'];?>
  <?php else:?>
  <a href="__CONTROLLER__/index/id/<?php echo $v['id'];?>" target="_blank">
  <?php echo $v['catname'];?>
  <?php endif;?>
  </a>
  </li>
<?php endforeach;?>
   
</ul>      
    </div>
 <div class="rnavs">
<ul>
<?php foreach($cats as $k=>$v):?>
  <li class="rnav<?php echo $k+1;?>">
  <a href="__CONTROLLER__/index/id/<?php echo $v['id'];?>" target="_blank">
    <?php echo $v['catname'];?>
  </a>
  </li>
<?php endforeach;?>    
</ul>      
    </div>
<div class="blank"></div>
<div class="news">
<h3>
      <p>最新<span>文章</span></p>
    </h3>

    <ul class="rank">
      <?php foreach($new_arcs as $v):?>
        <li><a href="__MODULE__/Article/detail/id/<?php echo $v['id']?>" title="<?php echo $v['title']?>" target="_blank"><?php echo $v['title']?></a></li>
      <?php endforeach;?> 
    </ul>


    <h3 class="ph">
      <p>点击<span>排行</span></p>
    </h3>
    <ul class="paih">
        <?php foreach($click_arcs as $vv):?>
        <li><a href="__MODULE__/Article/detail/id/<?php echo $vv['id']?>" title="<?php echo $vv['title']?>" target="_blank"><?php echo $vv['title']?></a></li>
        <?php endforeach;?>
    </ul>

</div>


<script type="text/javascript">
var cpro_id="u2063915";
(window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id]={at:"3",rsi0:"250",rsi1:"250",pat:"6",tn:"baiduCustNativeAD",rss1:"#FFFFFF",conBW:"1",adp:"1",ptt:"1",ptc:"%E7%8C%9C%E4%BD%A0%E6%84%9F%E5%85%B4%E8%B6%A3",ptFS:"14",ptFC:"#000000",ptBC:"#F2F2F2",titFF:"%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91",titFS:"14",rss2:"#000000",titSU:"0",ptbg:"90",piw:"0",pih:"0",ptp:"0"}
</script>
<script src="../../cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>

<div class="visitors">
      <h3><p>最近访客</p></h3>

<!--多说js加载开始，一个页面只需要加载一次 -->      
<ul class="ds-recent-visitors"  data-num-items="24"></ul>
<script type="text/javascript">
var duoshuoQuery = {short_name:"youngsong"};
(function() {
    var ds = document.createElement('script');
    ds.type = 'text/javascript';ds.async = true;
    ds.src = 'http://static.duoshuo.com/embed.js';
    ds.charset = 'UTF-8';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!--多说js加载结束，一个页面只需要加载一次 -->


    </div>
</aside>
</article>
<div id="tbox"> <a id="togbook" href=""></a> <a id="gotop" href="javascript:void(0)"></a> </div>